import Layout from '@/base/layout/index'
export default [
  {
    path: '/login',
    name: '登录页',
    component: () =>
      import('@/base/login/index'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/leaflet',
    name: '登录页',
    component: () =>
      import('@/page/VueLeaflet'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/demo',
    name: '登录页',
    component: () =>
      import('@/page/Demo'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/system',
    name: '管理',
    component: Layout,
    children: [
      {
        path: 'user',
        name: '用户管理',
        component: () =>import ('@/base/system/user')
      },
      {
        path: 'menu',
        name: '菜单管理',
        component: () => import ('@/base/system/menu')
      },
      {
        path: 'dept',
        name: '部门管理',
        component: () => import ('@/base/system/dept')
      },
      {
        path: 'role',
        name: '角色管理',
        component: () => import ('@/base/system/role')
      }
    ]
  },
  {
    path: '/register',
    name: '注册',
    component: () =>
      import( '@/base/login/register'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/userInfo',
    name: '个人信息',
    component:Layout,
    children:[
      {
        path:'',
        name:'个人信息',
        component:()=>import( '@/base/user/index')
      }
    ]
  },
  {
    path: '/',
    name: '主页',
    redirect: '/economic/economicMonitoring'    
  },

  
  // {
  //   path: '/404',
  //   component: () =>
  //     import('@/components/error-page/404'),
  //   name: '404',
  //   meta: {
  //     keepAlive: true,
  //     isTab: false,
  //     isAuth: false
  //   }

  // },
  // {
  //   path: '/403',
  //   component: () =>
  //     import('@/components/error-page/403'),
  //   name: '403',
  //   meta: {
  //     keepAlive: true,
  //     isTab: false,
  //     isAuth: false
  //   }
  // },
  // {
  //   path: '/500',
  //   component: () =>
  //     import('@/components/error-page/500'),
  //   name: '500',
  //   meta: {
  //     keepAlive: true,
  //     isTab: false,
  //     isAuth: false
  //   }
  // },
  // {
  //   path: '*',
  //   redirect: '/404'
  // }
]
